package org.dromara;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 启动程序
 *
 * @author Lion Li
 */
@EnableAsync
@SpringBootApplication
public class DromaraApplication {

    public static void main(String[] args) {
        long startTimeMillis = System.currentTimeMillis();
        SpringApplication application = new SpringApplication(DromaraApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        long endTimeMillis = System.currentTimeMillis();
        System.out.println("(♥◠‿◠)ﾉﾞ  RuoYi-Vue-Plus启动成功   ლ(´ڡ`ლ)ﾞ");
        System.out.println("启动耗时：" + (endTimeMillis - startTimeMillis) + "ms");
    }

}
